<div class="title">Profile verwalten</div>
<?php 
echo $this->element('flashMessage');
echo $this->Form->create();
?>
<table>
	<tr>
		<td style="border:none"><input type="text" name="find_profile_name" value="<?php echo $this->params['form']['find_profile_name'] ?>"></td>
		<td style="border:none"  colspan="3"><input type="submit" value="Filtern"><a href="<?php echo $this->here ?>"><button>Reset Filter</button></a></td>
	</tr>
	<tr>
		<th>Profil</th>
		<th>Beschreibung</th>
		<th>Aktion</th>
	</tr>
	<?php
	$out = '';
	foreach($this->data as $key => $value){
		$out .='<tr>';
			$out .='<td>';
			$out .= $value['Profile']['profile_name'];
			$out .='</td>';
			$out .='<td>';
			$out .= $value['Profile']['free_text'];
			$out .='</td>';
			$out .='<td>';
			$out .= $this->Html->link('Ändern',array('action'=>'update',$value['Profile']['id']));
			$out .= ' '.$this->Html->link('Löschen',array('action'=>'delete',$value['Profile']['id']));
			$out .='</td>';
		$out .='</tr>';
	}
	echo $out;
	?>
</table>

<?php echo $this->Form->end() ?>